package com.wxl.micro.service.order.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name="stock-service",path="/stock", fallback = StockFeignClientFallback.class)
public interface StockFeignClient {

    @GetMapping("/query/{id}")
    String query(@PathVariable("id") String id);  // 这里的@PathVariable注解字段一定要加上字段的名字@PathVariable("id")
}
